package com.koron.order.experiment.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.experiment.bean.po.ExperimentParamsPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (ExperimentParams)表服务接口
 *
 * @author zhouj
 * @since 2021-10-09 09:48:44
 */
public interface ExperimentParamsService extends CommonService {

    int insertOrUpdate(SessionFactory factory, ExperimentParamsPo experimentParams);

    int insertOrUpdateBatch(SessionFactory factory, List<ExperimentParamsPo> experimentParamsList);

    int insert(SessionFactory factory, ExperimentParamsPo experimentParams);

    int insertBatch(SessionFactory factory, List<ExperimentParamsPo> experimentParamsList);

    int update(SessionFactory factory, ExperimentParamsPo experimentParams);

    int deleteById(SessionFactory factory, String id);

    ExperimentParamsPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ExperimentParamsPo experimentParams, BaseQueryBean pageBean);

    List<ExperimentParamsPo> queryList(SessionFactory factory, ExperimentParamsPo experimentParams);

    List<ExperimentParamsPo> queryByEquipmentId(SessionFactory factory, String orderId, String experimentEquipId);
}
